import React, { Component } from 'react'
import { BrowserRouter, Route } from 'react-router-dom'
import RouterConfig from '@MODULES/routerConfig'


class Router extends Component {

    render() {
        return (
            <BrowserRouter>
                <div>
                    {
                        RouterConfig.map((item) => {
                            return (
                                <Route key={item.path} path={item.path} exact component={item.component} />
                            )
                        })
                    }
                </div>
            </BrowserRouter>
        )
    }
}

export default Router
